package com.atguigu.gulimall.search.web;


import com.atguigu.gulimall.search.service.MallService;
import com.atguigu.gulimall.search.vo.SearchParam;
import com.atguigu.gulimall.search.vo.SearchResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * <p>Title: IndexController</p>
 * Description：
 * date：2020/6/9 14:01
 */
@Controller
class SearchIndexController {

   @Autowired
	MallService mallService;

	@RequestMapping({"/", "/list", "/list.html"})
	public String indexPage(SearchParam param) {
		SearchResult result = mallService.search(param);
		return "list";
	}




}
